package com.pingan.internal.point.shopping.controller.form;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.NumberFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Positive;

@Getter
@Setter
public class GoodsOrderForm {

    @NotEmpty
    private String username;

    @NotEmpty
    private String goodsName;

    @NotEmpty
    private String goodsSn;

    @Positive
    private int quantity;

    @NotEmpty
    private String address;

    @NumberFormat
    private String cellphoneNumber;

    private String realName;

    private String userMessage;

}
